import { addNameSpace } from './util'

const NAME_SPACE = 'ENUM'

const addPrefix = addNameSpace(NAME_SPACE)

// 获取签名审核枚举
export const GET_SIGN_STATUS_ENUM = addPrefix('GET_SIGN_STATUS_ENUM')

export const GET_SIGN_STATUS_ENUM_SUCCESS = addPrefix('GET_SIGN_STATUS_ENUM_SUCCESS')

// 获取模板审核枚举
export const GET_TEMPLATE_STATUS_ENUM = addPrefix('GET_TEMPLATE_STATUS_ENUM')

export const GET_TEMPLATE_STATUS_ENUM_SUCCESS = addPrefix('GET_TEMPLATE_STATUS_ENUM_SUCCESS')

// 获取行业枚举
export const GET_INDUSTRY_ENUM = addPrefix('GET_INDUSTRY_ENUM')

// 获取行业枚举成功
export const GET_INDUSTRY_ENUM_SUCCESS = addPrefix('GET_INDUSTRY_ENUM_SUCCESS')

// 获取应用场景枚举
export const GET_SCENARIOS_ENUM = addPrefix('GET_SCENARIOS_ENUM')

// 获取应用场景枚举
export const GET_SCENARIOS_ENUM_SUCCESS = addPrefix('GET_SCENARIOS_ENUM_SUCCESS')

// 获取运营商枚举
export const GET_OPERATOR_ENUM = addPrefix('GET_OPERATOR_ENUM')

export const GET_OPERATOR_ENUM_SUCCESS = addPrefix('GET_OPERATOR_ENUM_SUCCESS')

// 获取短信发送状态枚举
export const GET_MESSAGE_STATUS_ENUM = addPrefix('GET_MESSAGE_STATUS_ENUM')

export const GET_MESSAGE_STATUS_ENUM_SUCCESS = addPrefix('GET_MESSAGE_STATUS_ENUM_SUCCESS')

// 获取用户充值枚举
export const GET_USER_RECHARGE_TYPE_ENUM = addPrefix('GET_USER_RECHARGE_TYPE_ENUM')

export const GET_USER_RECHARGE_TYPE_ENUM_SUCCESS = addPrefix('GET_USER_RECHARGE_TYPE_ENUM_SUCCESS')

// 获取批次记录审核枚举
export const GET_AUDIT_BATCH_STATUS_ENUM = addPrefix('GET_AUDIT_BATCH_STATUS_ENUM')

export const GET_AUDIT_BATCH_STATUS_ENUM_SUCCESS = addPrefix('GET_AUDIT_BATCH_STATUS_ENUM_SUCCESS')

export const getSignStatusEnum = () => ({ type: GET_SIGN_STATUS_ENUM })

export const getSignStatusEnumSuccess = (signStatusEnum) => ({ type: GET_SIGN_STATUS_ENUM_SUCCESS, signStatusEnum })

export const getTemplateStatusEnum = () => ({ type: GET_TEMPLATE_STATUS_ENUM })

export const getTemplateStatusEnumSuccess = (templateStatusEnum) => ({ type: GET_TEMPLATE_STATUS_ENUM_SUCCESS, templateStatusEnum })

export const getIndustryEnum = () => ({ type: GET_INDUSTRY_ENUM })

export const getIndustryEnumSuccess = (industryEnum) => ({ type: GET_INDUSTRY_ENUM_SUCCESS, industryEnum })

export const getScenariosEnum = () => ({ type: GET_SCENARIOS_ENUM })

export const getScenariosEnumSuccess = (scenariosEnum) => ({ type: GET_SCENARIOS_ENUM_SUCCESS, scenariosEnum })

export const getOperatorEnum = () => ({ type: GET_OPERATOR_ENUM })

export const getOperatorEnumSuccess = (operatorEnum) => ({ type: GET_OPERATOR_ENUM_SUCCESS, operatorEnum })

export const getMessageStatusEnum = () => ({ type: GET_MESSAGE_STATUS_ENUM })

export const getMessageStatusEnumSuccess = (messageStatusEnum) => ({ type: GET_MESSAGE_STATUS_ENUM_SUCCESS, messageStatusEnum })

export const getUserRechargeTypeEnum = () => ({ type: GET_USER_RECHARGE_TYPE_ENUM })

export const getUserRechargeTypeEnumSuccess = (rechargeTypeEnum) => ({ type: GET_USER_RECHARGE_TYPE_ENUM_SUCCESS, rechargeTypeEnum })

export const getAuditBatchStatusEnum = () => ({ type: GET_AUDIT_BATCH_STATUS_ENUM })

export const getAuditBatchStatusEnumSuccess = (auditBatchStatusEnum) => ({ type: GET_AUDIT_BATCH_STATUS_ENUM_SUCCESS, auditBatchStatusEnum })

export default {
  getSignStatusEnum,
  getSignStatusEnumSuccess,
  getTemplateStatusEnum,
  getTemplateStatusEnumSuccess,
  getIndustryEnum,
  getIndustryEnumSuccess,
  getScenariosEnum,
  getScenariosEnumSuccess,
  getOperatorEnum,
  getOperatorEnumSuccess,
  getMessageStatusEnum,
  getMessageStatusEnumSuccess,
  getUserRechargeTypeEnum,
  getUserRechargeTypeEnumSuccess,
  getAuditBatchStatusEnum,
  getAuditBatchStatusEnumSuccess,
}